package com.hlmedicals.app.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.lostad.app.common.entity.IdAutoEntity;

/**
 * 血压
 * @author：sszvip@qq.com
 * @since ：2017年08月02日
 */
@Entity
@Table(name = "bioc_nibp")
public class BiocNibp extends IdAutoEntity implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Column(name = "patient_id", nullable = false,columnDefinition=("varchar(32) comment '病人ID' "))
	private String patientId;
	/** 检测医生id */
	@Column(name = "gather_doctor_id",nullable=true,columnDefinition=("varchar(32) comment '检测医生ID，设备自动采集时可为空' "))
	private String doctorId;
	/** 流水号：标识一次体检 */
	@Column(columnDefinition=("varchar(32) comment '流水号：标识一次体检' "))
	private String seqno;
	//舒张压:DBP 收缩压:SBP  nibp:血压
	@Column(columnDefinition=("float comment '舒张压:DBP'"))
	private Float dbp;
	@Column(columnDefinition=("float comment '收缩压:SBP'"))
	private Float sbp;
	
	@Column(columnDefinition=("varchar(32) comment '采集设备唯一识别号'"))
	private String deviceNo;
//	//平均动脉压=(收缩压+2×舒张压)/3。也可表示为：平均动脉压=舒张压+1/3脉压差。正常成年人平均动脉压正常值为70~105mmHg。
//	@Column(columnDefinition=("float comment '收缩压:MAP'"))
//	private Float map;

	public BiocNibp(){}

	/**
	 * @return the patientId
	 */
	public String getPatientId() {
		return patientId;
	}

	/**
	 * @return the deviceNo
	 */
	public String getDeviceNo() {
		return deviceNo;
	}

	/**
	 * @param deviceNo the deviceNo to set
	 */
	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo;
	}

	/**
	 * @param patientId the patientId to set
	 */
	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}

	/**
	 * @return the doctorId
	 */
	public String getDoctorId() {
		return doctorId;
	}

	/**
	 * @param doctorId the doctorId to set
	 */
	public void setDoctorId(String doctorId) {
		this.doctorId = doctorId;
	}

	/**
	 * @return the seqno
	 */
	public String getSeqno() {
		return seqno;
	}

	/**
	 * @param seqno the seqno to set
	 */
	public void setSeqno(String seqno) {
		this.seqno = seqno;
	}

	/**
	 * @return the dbp
	 */
	public Float getDbp() {
		return dbp;
	}

	/**
	 * @param dbp the dbp to set
	 */
	public void setDbp(Float dbp) {
		this.dbp = dbp;
	}

	/**
	 * @return the sbp
	 */
	public Float getSbp() {
		return sbp;
	}

	/**
	 * @param sbp the sbp to set
	 */
	public void setSbp(Float sbp) {
		this.sbp = sbp;
	}
	
	
}